package cn.zb.zbrhback.basic.mapper;

import cn.zb.zbrhback.auth.domain.Menu;
import cn.zb.zbrhback.auth.domain.MenuQuery;
import cn.zb.zbrhback.auth.domain.Role;
import cn.zb.zbrhback.basic.util.BaseQuery;
import cn.zb.zbrhback.org.domain.Department;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();

    List<T> loadTree();

    long loadCount(BaseQuery baseQuery);

    List<T> loadPage(BaseQuery baseQuery);

    void update(T t);

    void insert(T t);
    T loadById(Serializable id);

    void batchDelete(List<Long> ids);
    void deleteById(Serializable roleId);
}
